package com.gxr.dao;

import java.util.ArrayList;
import java.util.List;

import com.dao.ObjectDao;
import com.pro.bean.Unit;
import com.pro.bean.Users;

public class UserDao extends ObjectDao{

	public List find(String username) {
		String sql = "select *from users where 1=1 ";
		
		if(username!=null&&!username.equals("")){
			sql += " and users.username like '" + "%"+username+"%"+"'";
		}
		
		System.out.println("sql find id -->" + sql);
		return super.findAll(sql, new Users());
	}

}
